//
//  MTZTempViewController.swift
//  weibomtz
//
//  Created by 毛铁柱 on 16/10/19.
//  Copyright © 2016年 mtz. All rights reserved.
//

import UIKit

class MTZTempViewController: UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        setupUI()
    }
    
    
    
    private func setupUI(){
    
        view.backgroundColor = UIColor.whiteColor()
        
        title = "当前第 \((navigationController?.childViewControllers.count ?? 0)-1) 个"
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "PUSH",  target: self, action: "push")
    
    
    }
    
    @objc private func push(){
        let vc = MTZTempViewController()
        
        navigationController?.pushViewController(vc, animated:true)
    
    }

}
